﻿@using GuRenFang.Common
@model GuRenFang.Service.Entity.Pager<GuRenFang.Service.Entity.Activities>
@{
    ViewBag.Title = "古人坊古装摄影之优惠活动&公司动态";
}
<section id="leftPanel">
    <div class="leftContainer">
        <div class="LeftHeaderBg">
            <span class="ImageTitle TipsBg"></span>
        </div>
        <div class="LeftContent" id="contactUs">
             @{Html.RenderPartial("_ContactUS");}
        </div>
        <div class="leftFooter"></div>
    </div>
</section>
<section id="rightPanel">
    <div class="middleContainer">
        <div class="middleTopHader"></div>
        <div class="middleContent" style="height: auto">
            <div class="page-header">
                <h2>优惠活动&公司动态 <small>按添加时间倒序排列显示</small></h2>
            </div>
            <ul class="thumbnails" id="activitiesList">
                @foreach (var item in Model.DataSource)
                {
                    <li class="span6">
                        <a class="thumbnail" href="@Url.Content("~/Activities/Detail/")@item.Id" title="单击查看详细信息" target="_blank">
                            <h5><span class="badge" title="被查看次数">@item.ReadTimes</span>&nbsp;&nbsp;@item.Title  <small>@item.CreatedTime</small></h5>
                            <p>@Html.Raw(Html.Truncate(Html.RemoveHtmlTag(item.Content), 200))
                            </p>
                        </a>
                    </li>
                }
            </ul>
            @Html.Partial("_Pager", Model.Item)
        </div>
        <div class="middleFooter"></div>
    </div>
</section>
<section class="clear-fix"></section>
